package com.yykj.prescription.server.model.repository.setting;

import com.yykj.prescription.server.model.entity.setting.PrescriptionCheckMember;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PrescriptionCheckMemberRepository extends JpaRepository<PrescriptionCheckMember,Integer> {
    List<PrescriptionCheckMember> findByHospitalId(Integer hospitalId);

    List<PrescriptionCheckMember> findAllByHospitalIdAndMemberIdAndRole(Integer hospitalId,String memberId,Integer roleId);
}
